<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-if和v-else-if和v-else</title>
</head>
<body>
    <!-- 
        key的作用:标识是否复用某个元素

     -->
    <div id="app">
        <p v-show="isShow">是否显示</p>
        <button @click="changeH">切换</button>
    </div>

    <script src="../vue/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                isShow:true,
                score:99
            },
            methods: {
                changeH(){
                    this.isShow = !this.isShow;
                }
            },
        });
    </script>
</body>
</html>